<ul class="row list-unstyled">
  <% @groups.each do |group| %>
    <li class="col-sm-8">
      <label class="control-label col-sm-2">分组名称</label>
      <span class="col-sm-4"><%= group.group_name %></span>
      <%= link_to '删除','javascript:void(0)',
      onclick: "ajax_function('/admin/company_configurations/destroy_configuration', 'student_group', 'StudentGroupConfiguration', #{group.id})",
      id: "delete_student_group#{group.id}" %>
  </li>
<% end %>

<%= form_for(@group,:url => create_student_group_admin_company_configurations_path, :html =>{ multipart: true}) do |f| %>
  <table class='table table-hover table-striped'>
    <tr>
      <td><%= f.label :分组名称 %></td>
      <td><%= f.text_field :group_name, required: true, :style =>"width:5em" %></td>
    </tr>
    <tr>
      <td colspan='2' class='button_center'>
        <%= f.submit "新增" %>
      </td>
    </tr>
  </table>
<% end %>
</ul>
